﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Data;

namespace WebApplication1
{
    public partial class _Default : System.Web.UI.Page
    {
        ArrayList myArrayList = new ArrayList();
        DataSet ds = new DataSet();
        List<String> myList;
        String qsId = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            qsId = Request.QueryString["Id"];
            DataTable dt = ds.Tables.Add("Customer");
            dt.Columns.Add("CustomerName", Type.GetType("System.String"));
            dt.Columns.Add("Country", Type.GetType("System.String"));

            DataRow dr = dt.NewRow();
            dr[0] = "Testcustomer1";
            dr[1] = "USA";
            dt.Rows.Add(dr);

            dr = dt.NewRow();
            dr[0] = "Testcustomer2";
            dr[1] = "UK";
            dt.Rows.Add(dr);

            dr = dt.NewRow();
            dr[0] = "Testcustomer3";
            dr[1] = "GERMANY";
            dt.Rows.Add(dr);

            dr = dt.NewRow();
            dr[0] = "Testcustomer4";
            dr[1] = "FRANCE";
            dt.Rows.Add(dr);

            //Bind the data to the Repeater
            idrepeater.DataSource = ds;
            idrepeater.DataMember = "Customer";
            idrepeater.DataBind();
            m_lblName.Text = qsId + " txt in lable";
            m_txtbxMyBox.Text = "Content of my text box";
            m_hlMyLink.Text = "Linkur";
            m_hlMyLink.NavigateUrl = "http://www.mbl.is";
        }
        public String MyFunc()
        {
            return "Gylfi Rullar";
        }
    }
}
